package com.lysj.food.food.domain;

import com.lysj.admin.utils.spring.foundation.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Created by wtl on 2019-03-19 16:00:45
 * @description 菜品属性
 */
@Data
@Entity
@EqualsAndHashCode(callSuper=true)
@Table(name = "lysj_food_food_attribute")
public class FoodAttribute extends BaseEntity {

    private String name; // 做法，口味，规格，称重

    private Integer type;  // 1,2,3,4，5-做法，口味，规格，称重，单位

    public FoodAttribute(String name, Integer type) {
        this.name = name;
        this.type = type;
    }
}